package com.czm.art_light.param.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * 搜索分页 请求DTO
 */
@Schema(description = "搜索分页 请求DTO")
@EqualsAndHashCode(callSuper = true)
@Data
public class ArtSearchReqDto extends PageReqDto implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 搜索的关键字
     */
    @Schema(description = "搜索的关键字", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message="搜索的关键字不能为空")
    private String keyword;
}
